#include "UdpServer.hpp"
#include <memory>
#include <iostream>

void Usage(std::string proc)
{
    std::cout << "Usage\n\t" << proc << " local_port\n" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(USAGE_ERROR);
    }

    EnableScreen();

    std::unique_ptr<UdpServer> svr = make_unique<UdpServer>(std::stoi(argv[1]));
    svr->InitServer();
    svr->Start();

    return 0;
}